<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="utf-8" isELIgnored="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <script type="text/javascript">
        function close2(){
            parent.layer.close(parent.layer.getFrameIndex(window.name));
        }
    </script>

</head>
<body>
<form action="FlightServlet" target="a">
    <input type="hidden" name="method" value="update">
    <input type="hidden" name="id" value="${requestScope.flights.id}">
    航班号 <input type="text" name="num" value="${requestScope.flights.num}"><br><br>
    出发点 <input type="text" name="splace" value="${requestScope.flights.splace}"><br><br>
    目的地 <input type="text" name="splaces" value="${requestScope.flights.splaces}"><br><br>
    出发时间 <input type="text" name="stime" value="${requestScope.flights.stime}"><br><br>
    到达时间 <input type="text" name="etime" value="${requestScope.flights.etime}"><br><br>
    经济舱价格 <input type="text" name="mprice" value="${requestScope.flights.mprice}"><br><br>
    座位 <input type="text" name="seat" value="${requestScope.flights.seat}"><br><br>
    剩余票数 <input type="text" name="flightnum" value="${requestScope.flights.flightnum}"><br><br>
    <input type="submit" onclick="close2()" value="确认修改">
</form>
<iframe name="a" style="display: none"></iframe>
</body>
</html>
